.class public Lcom/esfile/screen/recorder/player/DuVideoView;
.super Landroid/view/SurfaceView;
.source "DuVideoView.java"

# interfaces
.implements Landroid/widget/MediaController$MediaPlayerControl;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/player/DuVideoView$h;
    }
.end annotation


# instance fields
.field A:Landroid/view/SurfaceHolder$Callback;

.field private B:F

.field private C:F

.field private D:F

.field private a:Landroid/content/Context;

.field private b:Landroid/net/Uri;

.field private c:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private d:Ljava/lang/String;

.field private e:I

.field private f:I

.field private g:Landroid/view/SurfaceHolder;

.field private h:Landroid/media/MediaPlayer;

.field private i:I

.field private j:I

.field private k:I

.field private l:I

.field private m:I

.field private n:Landroid/widget/MediaController;

.field private o:Landroid/media/MediaPlayer$OnCompletionListener;

.field private p:Landroid/media/MediaPlayer$OnPreparedListener;

.field private q:I

.field private r:Lcom/esfile/screen/recorder/player/DuVideoView$h;

.field private s:Landroid/media/MediaPlayer$OnInfoListener;

.field private t:I

.field u:Landroid/media/MediaPlayer$OnVideoSizeChangedListener;

.field v:Landroid/media/MediaPlayer$OnPreparedListener;

.field private w:Landroid/media/MediaPlayer$OnCompletionListener;

.field private x:Landroid/media/MediaPlayer$OnInfoListener;

.field private y:Landroid/media/MediaPlayer$OnErrorListener;

.field private z:Landroid/media/MediaPlayer$OnBufferingUpdateListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0, p1}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    .line 2
    iput v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->e:I

    .line 3
    iput v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->f:I

    const/4 v0, 0x0

    .line 4
    iput-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->g:Landroid/view/SurfaceHolder;

    .line 5
    iput-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    .line 6
    new-instance v0, Lcom/esfile/screen/recorder/player/DuVideoView$a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$a;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->u:Landroid/media/MediaPlayer$OnVideoSizeChangedListener;

    .line 7
    new-instance v0, Lcom/esfile/screen/recorder/player/DuVideoView$b;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$b;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->v:Landroid/media/MediaPlayer$OnPreparedListener;

    .line 8
    new-instance v0, Lcom/esfile/screen/recorder/player/DuVideoView$c;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$c;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->w:Landroid/media/MediaPlayer$OnCompletionListener;

    .line 9
    new-instance v0, Lcom/esfile/screen/recorder/player/DuVideoView$d;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$d;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->x:Landroid/media/MediaPlayer$OnInfoListener;

    .line 10
    new-instance v0, Lcom/esfile/screen/recorder/player/DuVideoView$e;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$e;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->y:Landroid/media/MediaPlayer$OnErrorListener;

    .line 11
    new-instance v0, Lcom/esfile/screen/recorder/player/DuVideoView$f;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$f;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->z:Landroid/media/MediaPlayer$OnBufferingUpdateListener;

    .line 12
    new-instance v0, Lcom/esfile/screen/recorder/player/DuVideoView$g;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$g;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->A:Landroid/view/SurfaceHolder$Callback;

    const/high16 v0, -0x40800000    # -1.0f

    .line 13
    iput v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->B:F

    .line 14
    iput v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->C:F

    .line 15
    iput v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->D:F

    .line 16
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->a:Landroid/content/Context;

    .line 17
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->c()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 18
    invoke-direct {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/player/DuVideoView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 19
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->a:Landroid/content/Context;

    .line 20
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->c()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 21
    invoke-direct {p0, p1, p2, p3}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 p1, 0x0

    .line 22
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->e:I

    .line 23
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->f:I

    const/4 p1, 0x0

    .line 24
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->g:Landroid/view/SurfaceHolder;

    .line 25
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    .line 26
    new-instance p1, Lcom/esfile/screen/recorder/player/DuVideoView$a;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$a;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->u:Landroid/media/MediaPlayer$OnVideoSizeChangedListener;

    .line 27
    new-instance p1, Lcom/esfile/screen/recorder/player/DuVideoView$b;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$b;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->v:Landroid/media/MediaPlayer$OnPreparedListener;

    .line 28
    new-instance p1, Lcom/esfile/screen/recorder/player/DuVideoView$c;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$c;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->w:Landroid/media/MediaPlayer$OnCompletionListener;

    .line 29
    new-instance p1, Lcom/esfile/screen/recorder/player/DuVideoView$d;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$d;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->x:Landroid/media/MediaPlayer$OnInfoListener;

    .line 30
    new-instance p1, Lcom/esfile/screen/recorder/player/DuVideoView$e;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$e;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->y:Landroid/media/MediaPlayer$OnErrorListener;

    .line 31
    new-instance p1, Lcom/esfile/screen/recorder/player/DuVideoView$f;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$f;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->z:Landroid/media/MediaPlayer$OnBufferingUpdateListener;

    .line 32
    new-instance p1, Lcom/esfile/screen/recorder/player/DuVideoView$g;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/DuVideoView$g;-><init>(Lcom/esfile/screen/recorder/player/DuVideoView;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->A:Landroid/view/SurfaceHolder$Callback;

    const/high16 p1, -0x40800000    # -1.0f

    .line 33
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->B:F

    .line 34
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->C:F

    .line 35
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->D:F

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/player/DuVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->j:I

    return p0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/player/DuVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->j:I

    return p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/player/DuVideoView;Landroid/view/SurfaceHolder;)Landroid/view/SurfaceHolder;
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->g:Landroid/view/SurfaceHolder;

    return-object p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/player/DuVideoView;Z)V
    .locals 0

    .line 4
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/player/DuVideoView;->a(Z)V

    return-void
.end method

.method private a(Z)V
    .locals 2

    .line 20
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_1

    .line 21
    invoke-virtual {v0}, Landroid/media/MediaPlayer;->reset()V

    .line 22
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->release()V

    const/4 v0, 0x0

    .line 23
    iput-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    const/4 v1, 0x0

    .line 24
    iput v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->e:I

    if-eqz p1, :cond_0

    .line 25
    iput v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->f:I

    .line 26
    :cond_0
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object p1

    const-string v1, "audio"

    .line 27
    invoke-virtual {p1, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/media/AudioManager;

    .line 28
    invoke-virtual {p1, v0}, Landroid/media/AudioManager;->abandonAudioFocus(Landroid/media/AudioManager$OnAudioFocusChangeListener;)I

    :cond_1
    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/player/DuVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->k:I

    return p0
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/player/DuVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->l:I

    return p1
.end method

.method private b()V
    .locals 2

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    if-eqz v0, :cond_1

    .line 4
    invoke-virtual {v0, p0}, Landroid/widget/MediaController;->setMediaPlayer(Landroid/widget/MediaController$MediaPlayerControl;)V

    .line 5
    invoke-virtual {p0}, Landroid/view/SurfaceView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    instance-of v0, v0, Landroid/view/View;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Landroid/view/SurfaceView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    goto :goto_0

    :cond_0
    move-object v0, p0

    .line 6
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    invoke-virtual {v1, v0}, Landroid/widget/MediaController;->setAnchorView(Landroid/view/View;)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->d()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/MediaController;->setEnabled(Z)V

    :cond_1
    return-void
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/player/DuVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->l:I

    return p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/player/DuVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->k:I

    return p1
.end method

.method private c()V
    .locals 3

    const/4 v0, 0x0

    .line 3
    iput v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->j:I

    .line 4
    iput v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->k:I

    .line 5
    invoke-virtual {p0}, Landroid/view/SurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v1

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->A:Landroid/view/SurfaceHolder$Callback;

    invoke-interface {v1, v2}, Landroid/view/SurfaceHolder;->addCallback(Landroid/view/SurfaceHolder$Callback;)V

    .line 6
    invoke-virtual {p0}, Landroid/view/SurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v1

    const/4 v2, 0x3

    invoke-interface {v1, v2}, Landroid/view/SurfaceHolder;->setType(I)V

    const/4 v1, 0x1

    .line 7
    invoke-virtual {p0, v1}, Landroid/view/SurfaceView;->setFocusable(Z)V

    .line 8
    invoke-virtual {p0, v1}, Landroid/view/SurfaceView;->setFocusableInTouchMode(Z)V

    .line 9
    invoke-virtual {p0}, Landroid/view/SurfaceView;->requestFocus()Z

    .line 10
    iput v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->e:I

    .line 11
    iput v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->f:I

    return-void
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/player/DuVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->m:I

    return p0
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/player/DuVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->m:I

    return p1
.end method

.method private d()Z
    .locals 3

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->e:I

    const/4 v2, -0x1

    if-eq v0, v2, :cond_0

    if-eqz v0, :cond_0

    if-eq v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    return v1
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/player/DuVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->f:I

    return p0
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/player/DuVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->f:I

    return p1
.end method

.method private e()V
    .locals 7

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->b:Landroid/net/Uri;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->g:Landroid/view/SurfaceHolder;

    if-nez v0, :cond_0

    goto/16 :goto_3

    :cond_0
    const/4 v0, 0x0

    .line 4
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/player/DuVideoView;->a(Z)V

    .line 5
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v1

    const-string v2, "audio"

    .line 6
    invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/media/AudioManager;

    const/4 v2, 0x0

    const/4 v3, 0x3

    const/4 v4, 0x1

    .line 7
    invoke-virtual {v1, v2, v3, v4}, Landroid/media/AudioManager;->requestAudioFocus(Landroid/media/AudioManager$OnAudioFocusChangeListener;II)I

    .line 8
    :try_start_0
    new-instance v1, Landroid/media/MediaPlayer;

    invoke-direct {v1}, Landroid/media/MediaPlayer;-><init>()V

    iput-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    .line 9
    iget v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->i:I

    if-eqz v2, :cond_1

    .line 10
    iget v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->i:I

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setAudioSessionId(I)V

    goto :goto_0

    .line 11
    :cond_1
    invoke-virtual {v1}, Landroid/media/MediaPlayer;->getAudioSessionId()I

    move-result v1

    iput v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->i:I

    .line 12
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->v:Landroid/media/MediaPlayer$OnPreparedListener;

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V

    .line 13
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->u:Landroid/media/MediaPlayer$OnVideoSizeChangedListener;

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setOnVideoSizeChangedListener(Landroid/media/MediaPlayer$OnVideoSizeChangedListener;)V

    .line 14
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->w:Landroid/media/MediaPlayer$OnCompletionListener;

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 15
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->y:Landroid/media/MediaPlayer$OnErrorListener;

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    .line 16
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->x:Landroid/media/MediaPlayer$OnInfoListener;

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setOnInfoListener(Landroid/media/MediaPlayer$OnInfoListener;)V

    .line 17
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->z:Landroid/media/MediaPlayer$OnBufferingUpdateListener;

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setOnBufferingUpdateListener(Landroid/media/MediaPlayer$OnBufferingUpdateListener;)V

    .line 18
    iput v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->q:I

    .line 19
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->b:Landroid/net/Uri;

    invoke-virtual {v1}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v1

    .line 20
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->d:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 21
    new-instance v1, Ljava/io/File;

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->d:Ljava/lang/String;

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 22
    new-instance v2, Ljava/io/FileInputStream;

    invoke-direct {v2, v1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    .line 23
    invoke-virtual {v2}, Ljava/io/FileInputStream;->getFD()Ljava/io/FileDescriptor;

    move-result-object v1

    .line 24
    iget-object v5, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v5, v1}, Landroid/media/MediaPlayer;->setDataSource(Ljava/io/FileDescriptor;)V

    .line 25
    invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V

    goto :goto_1

    .line 26
    :cond_2
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->a:Landroid/content/Context;

    iget-object v5, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->b:Landroid/net/Uri;

    iget-object v6, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->c:Ljava/util/Map;

    invoke-virtual {v1, v2, v5, v6}, Landroid/media/MediaPlayer;->setDataSource(Landroid/content/Context;Landroid/net/Uri;Ljava/util/Map;)V

    .line 27
    :goto_1
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->g:Landroid/view/SurfaceHolder;

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setDisplay(Landroid/view/SurfaceHolder;)V

    .line 28
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v1, v3}, Landroid/media/MediaPlayer;->setAudioStreamType(I)V

    .line 29
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v1, v4}, Landroid/media/MediaPlayer;->setScreenOnWhilePlaying(Z)V

    .line 30
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->prepareAsync()V

    .line 31
    iput v4, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->e:I

    .line 32
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->b()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_3

    :catch_0
    move-exception v1

    goto :goto_2

    :catch_1
    move-exception v1

    goto :goto_2

    :catch_2
    move-exception v1

    .line 33
    :goto_2
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Unable to open content: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->b:Landroid/net/Uri;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const-string v3, "DuLocalVideoView"

    invoke-static {v3, v2, v1}, Lcom/esfile/screen/recorder/utils/n;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    const/4 v2, -0x1

    .line 34
    iput v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->e:I

    .line 35
    iput v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->f:I

    .line 36
    iget-object v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->r:Lcom/esfile/screen/recorder/player/DuVideoView$h;

    if-eqz v2, :cond_3

    .line 37
    iget-object v3, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v2, v3, v4, v0, v1}, Lcom/esfile/screen/recorder/player/DuVideoView$h;->a(Landroid/media/MediaPlayer;IILjava/lang/String;)Z

    goto :goto_3

    .line 38
    :cond_3
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->y:Landroid/media/MediaPlayer$OnErrorListener;

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-interface {v1, v2, v4, v0}, Landroid/media/MediaPlayer$OnErrorListener;->onError(Landroid/media/MediaPlayer;II)Z

    :cond_4
    :goto_3
    return-void
.end method

.method static synthetic f(Lcom/esfile/screen/recorder/player/DuVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->q:I

    return p1
.end method

.method static synthetic f(Lcom/esfile/screen/recorder/player/DuVideoView;)Landroid/media/MediaPlayer$OnCompletionListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->o:Landroid/media/MediaPlayer$OnCompletionListener;

    return-object p0
.end method

.method private f()V
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    invoke-virtual {v0}, Landroid/widget/MediaController;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    invoke-virtual {v0}, Landroid/widget/MediaController;->hide()V

    goto :goto_0

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    invoke-virtual {v0}, Landroid/widget/MediaController;->show()V

    :goto_0
    return-void
.end method

.method static synthetic g(Lcom/esfile/screen/recorder/player/DuVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->e:I

    return p1
.end method

.method static synthetic g(Lcom/esfile/screen/recorder/player/DuVideoView;)Landroid/media/MediaPlayer$OnInfoListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->s:Landroid/media/MediaPlayer$OnInfoListener;

    return-object p0
.end method

.method static synthetic h(Lcom/esfile/screen/recorder/player/DuVideoView;)Lcom/esfile/screen/recorder/player/DuVideoView$h;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->r:Lcom/esfile/screen/recorder/player/DuVideoView$h;

    return-object p0
.end method

.method static synthetic i(Lcom/esfile/screen/recorder/player/DuVideoView;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->a:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic j(Lcom/esfile/screen/recorder/player/DuVideoView;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->e()V

    return-void
.end method

.method static synthetic k(Lcom/esfile/screen/recorder/player/DuVideoView;)Landroid/media/MediaPlayer$OnPreparedListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->p:Landroid/media/MediaPlayer$OnPreparedListener;

    return-object p0
.end method

.method static synthetic l(Lcom/esfile/screen/recorder/player/DuVideoView;)Landroid/media/MediaPlayer;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    return-object p0
.end method

.method static synthetic m(Lcom/esfile/screen/recorder/player/DuVideoView;)Landroid/widget/MediaController;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    return-object p0
.end method

.method static synthetic n(Lcom/esfile/screen/recorder/player/DuVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->t:I

    return p0
.end method

.method static synthetic o(Lcom/esfile/screen/recorder/player/DuVideoView;)F
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->D:F

    return p0
.end method

.method static synthetic p(Lcom/esfile/screen/recorder/player/DuVideoView;)F
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->B:F

    return p0
.end method

.method static synthetic q(Lcom/esfile/screen/recorder/player/DuVideoView;)F
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->C:F

    return p0
.end method


# virtual methods
.method public a()V
    .locals 3

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    .line 12
    invoke-virtual {v0}, Landroid/media/MediaPlayer;->stop()V

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->release()V

    const/4 v0, 0x0

    .line 14
    iput-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    const/4 v1, 0x0

    .line 15
    iput v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->e:I

    .line 16
    iput v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->f:I

    .line 17
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v1

    const-string v2, "audio"

    .line 18
    invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/media/AudioManager;

    .line 19
    invoke-virtual {v1, v0}, Landroid/media/AudioManager;->abandonAudioFocus(Landroid/media/AudioManager$OnAudioFocusChangeListener;)I

    :cond_0
    return-void
.end method

.method public a(FF)V
    .locals 1

    .line 29
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 30
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v0, p1, p2}, Landroid/media/MediaPlayer;->setVolume(FF)V

    const/high16 p1, -0x40800000    # -1.0f

    .line 31
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->B:F

    .line 32
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->C:F

    goto :goto_0

    .line 33
    :cond_0
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->B:F

    .line 34
    iput p2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->C:F

    :goto_0
    return-void
.end method

.method public a(Landroid/net/Uri;Ljava/util/Map;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/net/Uri;",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 5
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->b:Landroid/net/Uri;

    .line 6
    iput-object p2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->c:Ljava/util/Map;

    const/4 p1, 0x0

    .line 7
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->t:I

    .line 8
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->e()V

    .line 9
    invoke-virtual {p0}, Landroid/view/SurfaceView;->requestLayout()V

    .line 10
    invoke-virtual {p0}, Landroid/view/SurfaceView;->invalidate()V

    return-void
.end method

.method public canPause()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public canSeekBackward()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public canSeekForward()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public getAccessibilityClassName()Ljava/lang/CharSequence;
    .locals 1

    .line 1
    const-class v0, Landroid/widget/VideoView;

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getAudioSessionId()I
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->i:I

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Landroid/media/MediaPlayer;

    invoke-direct {v0}, Landroid/media/MediaPlayer;-><init>()V

    .line 3
    invoke-virtual {v0}, Landroid/media/MediaPlayer;->getAudioSessionId()I

    move-result v1

    iput v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->i:I

    .line 4
    invoke-virtual {v0}, Landroid/media/MediaPlayer;->release()V

    .line 5
    :cond_0
    iget v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->i:I

    return v0
.end method

.method public getBufferPercentage()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->q:I

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public getCurrentPosition()I
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result v0

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public getDuration()I
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->getDuration()I

    move-result v0

    return v0

    :cond_0
    const/4 v0, -0x1

    return v0
.end method

.method public isPlaying()Z
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3

    const/4 v0, 0x1

    const/4 v1, 0x4

    if-eq p1, v1, :cond_0

    const/16 v1, 0x18

    if-eq p1, v1, :cond_0

    const/16 v1, 0x19

    if-eq p1, v1, :cond_0

    const/16 v1, 0xa4

    if-eq p1, v1, :cond_0

    const/16 v1, 0x52

    if-eq p1, v1, :cond_0

    const/4 v1, 0x5

    if-eq p1, v1, :cond_0

    const/4 v1, 0x6

    if-eq p1, v1, :cond_0

    const/4 v1, 0x1

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    .line 1
    :goto_0
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->d()Z

    move-result v2

    if-eqz v2, :cond_9

    if-eqz v1, :cond_9

    iget-object v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    if-eqz v1, :cond_9

    const/16 v1, 0x4f

    if-eq p1, v1, :cond_7

    const/16 v1, 0x55

    if-ne p1, v1, :cond_1

    goto :goto_2

    :cond_1
    const/16 v1, 0x7e

    if-ne p1, v1, :cond_3

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result p1

    if-nez p1, :cond_2

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->start()V

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    invoke-virtual {p1}, Landroid/widget/MediaController;->hide()V

    :cond_2
    return v0

    :cond_3
    const/16 v1, 0x56

    if-eq p1, v1, :cond_5

    const/16 v1, 0x7f

    if-ne p1, v1, :cond_4

    goto :goto_1

    .line 5
    :cond_4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->f()V

    goto :goto_4

    .line 6
    :cond_5
    :goto_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result p1

    if-eqz p1, :cond_6

    .line 7
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->pause()V

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    invoke-virtual {p1}, Landroid/widget/MediaController;->show()V

    :cond_6
    return v0

    .line 9
    :cond_7
    :goto_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result p1

    if-eqz p1, :cond_8

    .line 10
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->pause()V

    .line 11
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    invoke-virtual {p1}, Landroid/widget/MediaController;->show()V

    goto :goto_3

    .line 12
    :cond_8
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->start()V

    .line 13
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    invoke-virtual {p1}, Landroid/widget/MediaController;->hide()V

    :goto_3
    return v0

    .line 14
    :cond_9
    :goto_4
    invoke-super {p0, p1, p2}, Landroid/view/SurfaceView;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method protected onMeasure(II)V
    .locals 5

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->j:I

    invoke-static {v0, p1}, Landroid/view/SurfaceView;->getDefaultSize(II)I

    move-result v0

    .line 2
    iget v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->k:I

    invoke-static {v1, p2}, Landroid/view/SurfaceView;->getDefaultSize(II)I

    move-result v1

    .line 3
    iget v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->j:I

    if-lez v2, :cond_9

    iget v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->k:I

    if-lez v2, :cond_9

    .line 4
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v0

    .line 5
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result p1

    .line 6
    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v1

    .line 7
    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result p2

    const/high16 v2, 0x40000000    # 2.0f

    if-ne v0, v2, :cond_1

    if-ne v1, v2, :cond_1

    .line 8
    iget v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->j:I

    mul-int v1, v0, p2

    iget v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->k:I

    mul-int v3, p1, v2

    if-ge v1, v3, :cond_0

    mul-int v0, v0, p2

    .line 9
    div-int/2addr v0, v2

    goto :goto_1

    :cond_0
    mul-int v1, v0, p2

    mul-int v3, p1, v2

    if-le v1, v3, :cond_4

    mul-int v2, v2, p1

    .line 10
    div-int/2addr v2, v0

    move v0, p1

    move v1, v2

    goto :goto_3

    :cond_1
    const/high16 v3, -0x80000000

    if-ne v0, v2, :cond_3

    .line 11
    iget v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->k:I

    mul-int v0, v0, p1

    iget v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->j:I

    div-int/2addr v0, v2

    if-ne v1, v3, :cond_2

    if-le v0, p2, :cond_2

    goto :goto_0

    :cond_2
    move v1, v0

    move v0, p1

    goto :goto_3

    :cond_3
    if-ne v1, v2, :cond_6

    .line 12
    iget v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->j:I

    mul-int v1, v1, p2

    iget v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->k:I

    div-int/2addr v1, v2

    if-ne v0, v3, :cond_5

    if-le v1, p1, :cond_5

    :cond_4
    :goto_0
    move v0, p1

    goto :goto_1

    :cond_5
    move v0, v1

    :goto_1
    move v1, p2

    goto :goto_3

    .line 13
    :cond_6
    iget v2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->j:I

    .line 14
    iget v4, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->k:I

    if-ne v1, v3, :cond_7

    if-le v4, p2, :cond_7

    mul-int v2, v2, p2

    .line 15
    div-int/2addr v2, v4

    goto :goto_2

    :cond_7
    move p2, v4

    :goto_2
    if-ne v0, v3, :cond_8

    if-le v2, p1, :cond_8

    .line 16
    iget p2, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->k:I

    mul-int p2, p2, p1

    iget v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->j:I

    div-int/2addr p2, v0

    goto :goto_0

    :cond_8
    move v1, p2

    move v0, v2

    goto :goto_3

    :cond_9
    const-string p1, "DuLocalVideoView"

    const-string p2, "no size yet, just adopt the given spec sizes"

    .line 17
    invoke-static {p1, p2}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 18
    :goto_3
    invoke-virtual {p0, v0, v1}, Landroid/view/SurfaceView;->setMeasuredDimension(II)V

    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->d()Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    if-eqz p1, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->f()V

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public onTrackballEvent(Landroid/view/MotionEvent;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->d()Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    if-eqz p1, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->f()V

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public pause()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->d()Z

    move-result v0

    const/4 v1, 0x4

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->pause()V

    .line 4
    iput v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->e:I

    .line 5
    :cond_0
    iput v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->f:I

    return-void
.end method

.method public seekTo(I)V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v0, p1}, Landroid/media/MediaPlayer;->seekTo(I)V

    const/4 p1, 0x0

    .line 3
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->t:I

    goto :goto_0

    .line 4
    :cond_0
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->t:I

    :goto_0
    return-void
.end method

.method public setMediaController(Landroid/widget/MediaController;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Landroid/widget/MediaController;->hide()V

    .line 3
    :cond_0
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->n:Landroid/widget/MediaController;

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->b()V

    return-void
.end method

.method public setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->o:Landroid/media/MediaPlayer$OnCompletionListener;

    return-void
.end method

.method public setOnErrorListener(Lcom/esfile/screen/recorder/player/DuVideoView$h;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->r:Lcom/esfile/screen/recorder/player/DuVideoView$h;

    return-void
.end method

.method public setOnInfoListener(Landroid/media/MediaPlayer$OnInfoListener;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->s:Landroid/media/MediaPlayer$OnInfoListener;

    return-void
.end method

.method public setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->p:Landroid/media/MediaPlayer$OnPreparedListener;

    return-void
.end method

.method public setPlaySpeed(F)V
    .locals 1
    .annotation build Landroid/annotation/TargetApi;
        value = 0x17
    .end annotation

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Landroid/media/PlaybackParams;

    invoke-direct {v0}, Landroid/media/PlaybackParams;-><init>()V

    .line 3
    invoke-virtual {v0, p1}, Landroid/media/PlaybackParams;->setSpeed(F)Landroid/media/PlaybackParams;

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {p1, v0}, Landroid/media/MediaPlayer;->setPlaybackParams(Landroid/media/PlaybackParams;)V

    const/high16 p1, -0x40800000    # -1.0f

    .line 5
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->D:F

    goto :goto_0

    .line 6
    :cond_0
    iput p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->D:F

    :goto_0
    return-void
.end method

.method public setVideoPath(Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->d:Ljava/lang/String;

    .line 2
    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/player/DuVideoView;->setVideoURI(Landroid/net/Uri;)V

    return-void
.end method

.method public setVideoURI(Landroid/net/Uri;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/esfile/screen/recorder/player/DuVideoView;->a(Landroid/net/Uri;Ljava/util/Map;)V

    return-void
.end method

.method public setVolume(F)V
    .locals 0

    .line 1
    invoke-virtual {p0, p1, p1}, Lcom/esfile/screen/recorder/player/DuVideoView;->a(FF)V

    return-void
.end method

.method public start()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/DuVideoView;->d()Z

    move-result v0

    const/4 v1, 0x3

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->h:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->start()V

    .line 3
    iput v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->e:I

    .line 4
    :cond_0
    iput v1, p0, Lcom/esfile/screen/recorder/player/DuVideoView;->f:I

    return-void
.end method
